<?php
if (!defined('PEAR_PATH')) {
    define('PEAR_PATH', $_SERVER['DOCUMENT_ROOT']."/geneone/libs/");
}

define('GENE_RESOURCES_DIR', $_SERVER['DOCUMENT_ROOT']."/geneone/resources/");

// Normally this should be the PEAR path unless Geneone PEAR files are not
// in the same place as normal PEAR files.
define('PEAR_GENE_PATH', PEAR_PATH);

$geneconfig = array(
	/* Database Settings */
	"sql_dsn" => "mysql://user:password@localhost/geneone",
	
	/* Backend Settings */
	"sess_idle" => 30,
	"sess_password_retype" => 30, 
	
	/* User Interface Settings */
	"ui_urls" => array(
		"images" => "http://localhost/geneone/ui/default/images/",
		"scripts" => "http://localhost/geneone/ui/default/scripts/",
		"styles" => "http://localhost/geneone/ui/default/styles/",
		"emoticons" => "http://localhost/geneone/ui/emoticons/",
	),
	
	"templates_dir" => $_SERVER['DOCUMENT_ROOT']."/geneone/resources/templates/default/",
	"widgets_dir" => $_SERVER['DOCUMENT_ROOT']."/geneone/ui/widgets/",
	
	/* Object Settings */
	"objects" => array(
		"page" => "http://geneone.neondragon.net/objects/page/",
		"dynamic" => "http://geneone.neondragon.net/objects/dynamic/",
		"blog" => "http://geneone.neondragon.net/objects/blog/",
		"blogentry" => "http://geneone.neondragon.net/objects/blogentry/",
		"blogcomment" => "http://geneone.neondragon.net/objects/blogcomment/",
		"forumcentre" => "http://geneone.neondragon.net/objects/forumcentre/",
		"forum" => "http://geneone.neondragon.net/objects/forum/",
		"discussion" => "http://geneone.neondragon.net/objects/discussion/",
		"discussioncomment" => "http://geneone.neondragon.net/objects/discussioncomment/",
		"redirect" => "http://geneone.neondragon.net/objects/redirect/",
	),
	
	"maximum_drafts" => 50,
	
	/* Special Settings */
	"special_pages" => array(
		"captcha" => array("*"),
		"drafts" => array("member"),
		"guest" => array("member"),
		"import_profile" => array("member", "!gene-require-pwconfirm"),
		"login" => array("*"),
		"logout" => array("*"),
		"password" => array("*"),
		"register" => array("*"),
		"retype" => array("member"),
		"search" => array("*"),
		"settings" => array("member", "!gene-require-pwconfirm"),
		"upload" => array("g3"),
	),
	
	/* File Settings */
	"file_storage" => "database",
	"file_dir" => "",
	
	/* Geneone Settings */
	"gene_name" => "Geneone Development Site",
	"default_obj" => "1",
	
	/* Namespaces */
	"default_namespace" => "Object",
	"namespaces" => array(
		"Object" => "object",
		"Special" => "special",
		"User" => "user",
		"Community" => "meta",
		"File" => "file",
	),
	
	"special_prefix" => "Special",
	"user_prefix" => "User",
	"meta_prefix" => "Community",
	"file_prefix" => "File",
	
	"public_uri" => "http://localhost/geneone/index.php?s=%s",
	"xml_uri" => "http://localhost/geneone/xml.php?s=%s",
	"gene_uri" => "http://localhost/geneone/",
	"guid_uri" => "http://localhost/geneone/?s=%s",
	"cookie_domain" => null,
	"cookie_path" => "/",
	"cookie_prefix" => "gene_",
	"database_prefix" => "gene_",
	
	/* These override the prefix setting */
	"database_override" => array(),
	
	/* User Settings */
	"default_ugroups" => array(3),
	"max_public_names" => 3,
	"require_email_confirm" => false,
	
	/* Login Throttling */
	"login_throttle" => true,
	"login_throttle_block" => 10,
	"login_throttle_captcha" => 3,
	"login_throttle_user" => true,
	"login_throttle_user_captcha" => 5,
	
	/* Anti-bot stuff */
	"reg_captcha" => true,
	"object_guest_captcha" => true,
	
	/* Email Settings */
	"email" => array(
		"backend" => "mail",
		"params" => array(
		),
		"from" => "youraddress@yourdomain.net",
	),
	
	/* Search Settings */
	"search_sources" => array(
		"object",
		"user",
	),
	"search_default_source" => "object",
);
?>